import request from '@/utils/axios'

export function fetchList(query) {
  return request({
    url: '/user/list',
    method: 'get',
    params: query
  })
}

export function addUser(query) {
  const data = Object.assign({},query)
  return request({
    url: '/user/add',
    method: 'post',
    data
  })
}

export function updateUser(query) {
  const data = Object.assign({},query)
  return request({
    url: '/user/update',
    method: 'post',
    data
  })
}
export function deleteUser(query) {
  const data = Object.assign({},query)
  return request({
    url: '/user/delete',
    method: 'post',
    data
  })
}




